import os
path = 'D:\\4_Sensing_20160909\\11_Dataset\\video\\zhangzidao\\4\\'
write_file = path+'list.txt'
with open(write_file,"w") as wf:
    for file in os.listdir(path):
        if os.path.isfile(os.path.join(path,file)) == True:
            print(file)
            wf.write(file+"\n")